<include file="../Public/agent.header.html" />
<link href="__PUBLIC__/Css/user.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Css/orderDetail.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="__PUBLIC__/Js/user/common.js" charset="UTF-8"></script>
<script type="text/javascript">
    //鼠标移动表格效果
    $(document).ready(function(){
    	inittable();
    });
    
    function inittable(){
        $(".list").find('tr').hover(
          function () {
            $(this).addClass("bg_hover");
          },
          function () {
            $(this).removeClass("bg_hover");
          }
        );
    }
</script>

<div id="mainWrapper">

	<div id="main">

		<include file="../agent/Tpl/default/Public/user_left_nav_box.html" />
  
  		<div id="right_box">
  			<div class="item_top" id="top_nav">
  				<span style="float:right;font-weight:bold">
					共：&nbsp;
					<font style="color:red;font-size:16px;font-style: italic;" id="total_no">0</font>
					&nbsp;件&nbsp;&nbsp;
				</span>
				<ul>
					<li class="top_bar top-bar-wide top_baron">分成支付记录</li>
				</ul>
			</div>
  			<div id="ajx_show_area_gift_list">
				<php>
				$where_['user_id']=$_SESSION['mid'];
				$where_['enable']='Y';
				$pageData = M("AgentPay")->where($where_)->order('etime DESC')->findPage(20);
				if(empty($pageData)||empty($pageData['data'])){
				</php>
					<div style="width:100%;text-align:center;margin-top:15px;">
						<php>$alert_message="暂无符合条件的数据！";</php>
						<include file="../Public/alert_box.html" />
					</div>
				<php>
				}else{
				</php>

  			<div class="list" style="margin-top:5px">
			  	<table cellspacing="0" cellpadding="0" border="0" width="100%" id="order_list">
					<tbody>
					  <tr rel="order_title">
					    <th style="text-align: center;">开户银行</th>
					    <th style="text-align: center;" class="line_l">账号用户</th>
					    <th style="text-align: center;" class="line_l">银行账号</th>
					    <th style="text-align: center;" class="line_l">支付金额</th>
					    
					    <th style="text-align: center;" class="line_l">分成时间区间</th>
					    
					    <th style="text-align: center;" class="line_l">录入时间</th>
					    <th style="text-align: center;" class="line_l">备注</th>
					  </tr>
					  <volist id="vo" name="pageData['data']">
						  <tr rel="order_{$vo['order_id']}">
						 		<td style="text-align: center;border-left: 0px;">{$vo['bank_name']}</td>
						 		<td style="text-align: center;">{$vo['bank_user']}</td>
						       	<td style="text-align: center;">{$vo['bank_no']}</td>
						       	<td style="text-align: right;">{:formatMoney($vo['amount'])}</td>
						       	
						       	<td style="text-align: center;">
						       	{:paramMillisecond2Date($vo['stime'],'Y-m-d','-- --')}
						       	~
						       	{:paramMillisecond2Date($vo['etime'],'Y-m-d','-- --')}
						       	</td>
						       	<td style="text-align: center;">{:paramMillisecond2Date($vo['ctime'],'Y-m-d H:i','-- --')}</td>
						      	<td style="text-align: center;">{$vo['remarks']}</td>
						  </tr>
					  </volist>
					</tbody>
				  	</table>
			  </div>
			  <div id="clear"></div>
			  <div id="show_order_page">
				  <div class="page_box">{$pageData['html']}</div>
			  </div>

			<php>}</php>
			  </div>
			  <div id="clear"></div>
			  
	</div>
</div>

<include file="../Public/footer.html" />